package com.le.tester.book.effectivejava3rdchinese.secondReading.l25;

/**
 * createTime：2024-09-03 10:23
 * description：将源文件限制成单个顶级类
 */
public class Main {
    public static void main(String[] args) {
        //System.out.println(Utensil.NAME + [Dessert.NAME](http://Dessert.NAME));
    }
}


//不建议这么做，整个类的就一个顶级类就行，对于这种嵌套的类，在后续的开发中实用性很低
class Utensil {
    static final String NAME = "pan";
}

class Dessert {
    static final String NAME = "cake";
}

